package com.map.station;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.widget.TabHost;
import android.widget.TabHost.TabContentFactory;

public class SearchActivity extends TabActivity implements TabContentFactory {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.search);
		
		final TabHost tabHost = getTabHost();
		final Resources resource = getResources();
		
		tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("Search Station",
				resource.getDrawable(R.drawable.gas_station))
				.setContent(new Intent(this, SearchByStation.class)));
		
		tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("Search Service",
				resource.getDrawable(R.drawable.service))
				.setContent(new Intent(this, SearchByService.class)));
	}
	
	@Override
	public View createTabContent(String tag) {
		return null;
	}
}
